﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XKJ.OAWeb.Dto;
using XKJ.OAWeb.Models;
using XKJ.OAWeb.Shared;

namespace XKJ.OAWeb.Application
{
    public interface IUserService
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="login"></param>
        /// <returns></returns>
        public User Login(User login);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public PageList<User> UserShow(int Pageindex, int Pagesize,string? UserName);
        /// <summary>
        /// 用户角色显示
        /// </summary>
        /// <returns></returns>
        public PageList<UserRoleDto> UserRoleShow(int Pageindex, int Pagesize, string? UserName);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public int UserAdd(User user);
        /// <summary>
        /// 删除Id
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public bool UserDeleteId(int Id);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public User UserBackfill(int Id);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public int UserUptdate(User user);
    }
}
